<?php

class Developer extends MY_Controller
{
	function Developer()
	{
		parent::MY_Controller();
		
		# check if user is logged-in
		$user_id = (int)$this->session->userdata('user_id');
		if($user_id == 0) redirect( site_url('/'), 'location');

		header('Expires: Thu, 01-Jan-70 00:00:01 GMT');
		header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
		header('Cache-Control: no-store, no-cache, must-revalidate');
		header('Pragma: no-cache');
		
		# add custom css file for user controller
		$this->data['header_data']['css'][] = '/css/developer.css';
		$this->data['header_data']['css'][] = '/css/home.css';
		$this->data['header_data']['js'][] = '/js/jquery/jquery-1.4.3.min.js';
		$this->data['header_data']['js'][] = '/js/tmp.js';
		
		# load the language file
		$this->lang->load('developer');
		
	}	


	public function index($action = 'api')
	{
		switch($action)
		{
			case 'api':
				break;
				
			case 'register':
				break;
			
			case 'manage':
				break;
			
			default:
				break;
		}
	}
	
	
	private function _registerApplication()
	{
		$this->data['header_data']['page_title'] = 'turbotask.me - ' . lang('register_application');
	}
}